﻿<%@ Page Title="" Language="C#" MasterPageFile="~/webform/Site1.Master" AutoEventWireup="true" CodeBehind="Project.aspx.cs" Inherits="Zhongchouwwwww.webform.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../Content/bootstrap.css" rel="stylesheet" />
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css" />
     <link href="../Content/aaa.css" rel="stylesheet" />
    <link href="../Content/Index-item.css" rel="stylesheet" />
    <script src="../Scripts/jquery-3.4.1.min.js"></script>
    <script src="../Scripts/bootstrap.min.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content2" runat="server">
    
   <%-- <script src="../Scripts/WebForms/111.js"></script>--%>
    <style>
        .zhichimmm{
            color:red;
            margin-left:40%;
        }
    </style>
    <link href="../Content/layout.css" rel="stylesheet" />
    <div style="height:30px"></div>
            <div class="heoun grid" style="background-color: #f8f8f8;">
            <div class="eunme grid-cell-2 ">
                <p style="font-size: 20px">
                    项目名称：
                <%= ProjectDate.projectname %>
                </p>
                <asp:Label ID="Lan1" runat="server" Text="发起人" ForeColor="Red"></asp:Label>
                <asp:Label runat="server" Text="" ID="lan"><%= Userinfo.usernikename %></asp:Label>
                <%--头部--%>
                <div class="content">
                    <div class="bd">
                        <%--项目主页内容--%>
                        <div class="show" style="font-size: 18px;">
                            <asp:Label ID="Label1" runat="server" Text="项目主页" Font-Bold="True" Font-Size="18pt" ></asp:Label>
                            <p><%= ProjectDate.projectdesc %> </p>
                            <div>
                                <asp:Label ID="Label28" runat="server" Text="关于我们" Font-Bold="True" Font-Size="18pt" ></asp:Label>
                                <div style="width:400px;height:400px">
                                    <img src='<%=urls[0] %>' style="width:100%;height:100%" alt=""  />
                                </div>
                                <p><%= ProjectDate.aboutus %></p>
                            </div>
                            <div>
                                <asp:Label ID="Label29" runat="server" Text="我们想要什么" Font-Bold="True" Font-Size="18pt"></asp:Label>
                                <br />
                                <div style="width:400px;height:400px">
                                    <img src='<%=urls[1] %>' style="width:100%;height:100%" alt="" />
                                </div>
                                <p> <%=ProjectDate.wanttodo %></p>
                            </div>
                            <div>
                                <asp:Label ID="Label30" runat="server" Text="我们为什么支持你" Font-Bold="True" Font-Size="18pt"></asp:Label>
                                <br />
                                <div style="width:400px;height:400px">
                                    <img src='<%=urls[2] %>' style="width:100%;height:100%" alt=""  />
                                </div>
                                <p> <%=ProjectDate.need %></p>
                            </div>
                            <div>
                                <asp:Label ID="Label31" runat="server" Text="我们的承诺与回报" Font-Bold="True" Font-Size="18pt"></asp:Label>
                                <p>
                                    <%=ProjectDate.promise %>
                                </p>
                            </div>
                            <hr />
                            分类：<span style="color:red;"><%=ProjectDate.typer %></span>
                            <span style="width:60px"></span>
                            标签：<span style="color:red;"><%= ProjectDate.projectlabel %></span>
                        </div>
                    </div>
                </div>
            </div>
            <div id="congz">
            </div>
            <div class="cumen grid-cell-1">
                <%--傍边1--%>
                <div class="cuenme-r" >
                    <p style=" display: inline; margin:10%;">
                        <asp:Button ID="ButXH" OnClick="ButXH_Click" runat="server" Text="♥喜欢" BackColor="Red" Height="40px" Width="100px" Style="border-radius: 8px;" ForeColor="White" />
                    </p>
                    <p style=" display: inline;  margin:10%">
                        <asp:Button ID="ButZC" OnClick="ButZC_Click" runat="server" Text="⭐支持" BackColor="#00CCFF" Height="40px" Width="100px" Style="border-radius: 8px;" ForeColor="White" />
                    </p>
                    <p>请输入支持金额(正整数) <asp:TextBox runat="server" ID="ZC_JE" Text="" /></p>
                </div>
                <%--傍边2--%>
                <% if (ProjectDate.state=="已完成")
                    {%>
                <div style="background-color:white;border-radius:14px;padding:5px;">
                <p style="font-size:1.2em">项目  <span style="color:red"><%=ProjectDate.projectname %></span>  已完成众筹</p>
                   <h3>该项目目前累计金额</h3>
                <p style="color:red;font-size:1.2em">￥<%= ProjectDate.incomemoney %></p>
                <h3>将于<%=ProjectDate.EndData.ToLongDateString() %>停止公示众筹</h3>
                    </div>
                <% }else{ %>
                <div class="cuenme-e" style="position:relative;">
                    <div class="cuenme-r-e" >
                        <p>目前累计金额</p>
                        <p>￥<%= ProjectDate.incomemoney %>
                        </p>
                        <div style="position:absolute;color:white;background-color:red;font-size:1em;width:80px;height:40px;padding:5px;top:15px;right:50px;">
                                <%= ProjectDate.state %>
                            </div>
                        <p style="margin: 0px;">
                            此项目必须在<asp:Label ID="LaBne3" runat="server" ForeColor="Red" Text=""> <%= ProjectDate.EndData.ToLongDateString() %></asp:Label>前得到
                        </p>
                        <p style="margin: 0px;">
                            <asp:Label ID="LaBne4" runat="server" Text="" ForeColor="Red"><%=  ProjectDate.targetmoney %></asp:Label>元的支持才成功！
                        </p>
                        <%--进度条--%>
                        <div class="progress">
                                <div class="progress-bar progress-bar-danger" role="progressbar"
                                    aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" <%= "style=width:"+ThisProjectPro+"%" %> >
                                 </div>
                        </div>
                        <div>
                            <p style="float: left;">
                                <asp:Label ID="LaBne5" runat="server" Text="Label"><%=ProjectDate.remainingday %>天</asp:Label>
                                <br />
                                剩余时间
                            </p>
                            <p style="float: left; margin: 0px 20%;">
                                <asp:Label ID="ZCZRS" runat="server" Text=""></asp:Label>
                                <br />
                                支持者
                            </p>
                            <p>
                                <asp:Label ID="XHRS" runat="server" Text=""></asp:Label>
                                <br />
                                喜欢
                            </p>
                        </div>
                    </div>
                </div>
                <%  }%>
                <%--第一块--%>
                 <div class="cuenme-e">
                    <div class="cuenme-r-w">
                        <asp:Repeater runat="server" ID="Rrojectitem" OnItemCommand="Rrojectitem_ItemCommand">
                <ItemTemplate>
                    <div style="width:100%;display:inline-block;">
                       <div style="width:90%; height:10px;"></div>
                       <p>支持金额：￥<%# Eval("supportmoney") %></p>
                       <p>回报内容：<%# Eval("returncontent") %></p> 
                       <p>邮费：<%# Eval("freight") %></p>
                       <p>回报发送：预计回报时间在项目众筹结束后<%# Eval("time") %>天内</p>    
                        <div style="width:100%; height:10px;"></div>
                       <asp:LinkButton  runat="server"  CommandArgument="LinkB" OnClientClick="return confirm('是否要支持')" CssClass="zhichimmm" Text="支持" ></asp:LinkButton>
                           
                    </div>
                </ItemTemplate>
            </asp:Repeater>
                    </div>
                </div>
            </div>
        </div>
    <div style="margin-left:10%;height:auto;margin-right:10%;margin-top:30px;">
        <% if (useid == 0)
            { %>
                <div style="border:solid 1px gray;width:100%;height:50px;">
                    <p style="text-align:center"><span>想要对此项目指指点点？</span></p>
                    <p style="text-align:center">请先<a href="user-login.aspx">登录</a>(・ω・)</p>
                </div>
           <% }else{ %>
        <asp:Image ImageUrl='<%# ThisUserImgs  %>' runat="server" />
        <asp:Label Text='<%# ThisUserName %>' runat="server" />
        <asp:TextBox runat="server" ID="ThisUserMsg" Width="200px" Height="30px" />
        <asp:Button Text="发表评论" ID="SendComment" OnClick="SendComment_Click" runat="server" />
        <%-- 展示所有评论 --%>
        <%} %>
        <br />
        <h1 style="margin-left:30px">评论区</h1>
        <% foreach (var item in commentsNameImgs)
            {  %>
            <div style="margin-left:10%;">
                <div style="width:45px;height:45px;border-radius:45px;display:inline-block;">
                <img src='<%=item.Value[1] %>' style="width:100%;height:100%" />
                </div>
            <span style="color:red;margin-left:5px;margin-right:10px;"><% =item.Value[2] %></span>
            <input type="text"  name="name" value='<% =item.Key  %>' readonly="readonly" style="width:400px;height:50px" />
            <span>评论发布时间：<% =item.Value[4] %></span>
            </div>
          <% } %>      
    </div>
</asp:Content>
